function phoneValid(phoneNumber) {
  return /^1\d{10}$/.test(phoneNumber);
}
function getQueryStringByName(name) {
  const result = location.search.match(new RegExp(`[\?\&]${name}=([^\&]+)`, 'i'));
  if (result === null || result.length < 1) {
    return '';
  }
  return result[1];
}
export default {
  phoneValid,
  getQueryStringByName,
};
